package cn.fintecher.gis.entity;

import cn.fintecher.gis.enums.CommonShow;
import cn.fintecher.gis.enums.FlowType;
import cn.fintecher.gis.enums.Pellucidity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "business_layer")
@Data
@ApiModel(value = "业务图层管理", description = "业务图层管理")
public class BusinessLayer extends BaseEntity {

    @ApiModelProperty(notes = "图层名称")
    private String layerName;

    @ApiModelProperty(notes = "图层描述")
    private String layerRemark;

    @ApiModelProperty(notes = "是否展示")
    @Enumerated(EnumType.STRING)
    private CommonShow layerShow;

    @ApiModelProperty(notes = "是否展示")
    @Enumerated(EnumType.STRING)
    private FlowType type;

    @ApiModelProperty(notes = "图层编号")
    private String layerCode;

    @ApiModelProperty(notes = "表名")
    private String tableName;

    @ApiModelProperty(notes = "工作区间")
    private String layerSpace;

    @ApiModelProperty(notes = "所属图层组id")
    private String groupId;

    @ApiModelProperty(notes = "透明度")
    @Enumerated(EnumType.STRING)
    private Pellucidity opacity;

    @ApiModelProperty(notes = "添加日期")
    private Date createDate;

    @ApiModelProperty(notes = "创建人id")
    private String createOperator;

    @ApiModelProperty(notes = "创建人姓名")
    private String createName;

}
